package cn.broadsense.biz.convert;

import cn.broadsense.biz.domain.Channel;
import cn.broadsense.biz.domain.ChannelOrg;
import cn.broadsense.biz.domain.ChannelTag;
import cn.broadsense.biz.dto.ChannelOrgTreeDto;
import cn.broadsense.biz.dto.ChannelTagTreeDto;
import cn.broadsense.biz.vo.ChannelVo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

import java.util.List;

/**
 * 点位实体转换
 *
 * @author: pengxin
 * @create: 2023-09-25 11:45
 * @Version 1.0
 **/
@Mapper(componentModel = "spring")
public interface ChannelConvert {

    ChannelOrgTreeDto toChannelOrgTree(ChannelOrg channelOrg);

    List<ChannelOrgTreeDto> toChannelOrgTreeList(List<ChannelOrg> channelOrgList);

    List<ChannelTagTreeDto> toChannelTagTreeList(List<ChannelTag> channelTags);

    Channel toChannel(ChannelVo channelVo);

}
